<template>
	<view class="line-title" :style="info.F_QUQY_OVERMATER>0&&{color:'#f00'}">{{info.FBillNo}}</view>
	<view class="line xl">
		<view class="line-label">养殖批次：</view>
		<view class="line-content">{{info['F_QUQY_YZFID.FName']}}</view>
	</view>
	<view class="line xl">
		<view class="line-label">合同只数：</view>
		<view class="line-content">{{info.F_QUQY_HTQTY}}</view>
	</view>
	<view class="line">
		<view class="line-label">上苗日期：</view>
		<view class="line-content">{{moment(info.F_QUQY_MIAODATE).format('YYYY-MM-DD')}}</view>
	</view>
	<view class="line">
		<view class="line-label">上苗天数：</view>
		<view class="line-content">{{info.F_QUQY_SYDAY}} 天</view>
	</view>
	<view class="line">
		<view class="line-label">吃料斤数：</view>
		<view class="line-content">{{info.F_QUQY_EATMATER}}</view>
	</view>
	<view class="line">
		<view class="line-label">标准采食：</view>
		<view class="line-content">{{info.F_QUQY_ACCFEEDINJIN }} 斤 / 只</view>
	</view>
	<view class="line" v-if="info.F_QUQY_OVERMATER>0">
		<view class="line-label">超料量：</view>
		<view class="line-content">{{info.F_QUQY_OVERMATER}}</view>
	</view>
	<view class="line">
		<view class="line-label">业务员：</view>
		<view class="line-content">{{info['F_QUQY_YWY.Fname']}}</view>
	</view>
</template>

<script setup>
	// 上苗计划列表
	import moment from 'moment'
	import { reactive, getCurrentInstance, ref, computed } from 'vue'
	import { onLoad } from '@dcloudio/uni-app'
	const { proxy } = getCurrentInstance()

	const props = defineProps({
		info: {
			type: Object,
			default: () => {}
		}
	})

	const  exceedNum = computed(()=>{
		return props.info.F_QUQY_EATMATER - props.info.F_QUQY_HTQTY * props.info.F_QUQY_ACCFEEDINJIN 
	})
</script>
<style lang="scss" scoped>
	.line-title {
		width: 100%;
		font-weight: 800;
		line-height: 60rpx;
		color: #409eff;
	}

	.line {
		display: flex;
		width: 50%;
		line-height: 50rpx;

		&.xl {
			width: 100%;
		}

		.line-label {
			width: 140rpx;
			text-align: justify;
			text-align-last: justify;
		}
	}
</style>